<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>评论发言</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
    <meta content="telephone=no" name="format-detection"/>
    <link href="{{url('css/main.css')}}" type="text/css" rel="stylesheet"/>
    <script src="{{url('js/jquery.js')}}" type="text/javascript"></script>
    <script>
        $(function () {
            $('.input_complete').click(function () {
                var content=$('#message').val();
                if(content==''){
                    alert('请输入内容')
                    return false;
                }
                $.post("/wx/comment", {content: content}, function (result) {
                        alert(result.msg);
                       // window.location.reload();
                },"json");
            });
        })
    </script>
</head>

<body style=" background-color:#f3f4f6;">
<form style=" position:relative;">
    <textarea class="contant_message message" rows="7" cols="50" name="subject" placeholder="请输入给我们的留言信息..." id="message"
              required></textarea>
    <span style=" position:absolute; right:6px; bottom:6px; font-size:12px; color:#999999;">字数限制120字</span>
</form>


<div style="padding:10px;"><input class="input_complete" type="submit" value="确认发送"></div>
</body>
</html>
